#include <iostream>

using namespace std;

int main()
{
	//Declaring variables
	int seqNum=0;
	int curr=1;
	int prev=1;
	int next=0;

	//print first number in the sequence
	cout << next << "," << prev << "," << curr;
	
	//Iterate 10 times
	for (seqNum=0; seqNum<10; seqNum++)
	{
		//print next number
		next=curr+prev;  
		cout << "," << next;
		prev=curr;
		curr=next;
		
	}

	//Pause screen (not needed if using Code::Blocks. Substitute for Return 0;)
	cout << endl;
	system("PAUSE");
}